interface IEat {
  eat(food: string): void
}

interface IRun {
  run(distance: number): void
}

class Animal implements IEat, IRun {
  eat(food: string): void {
    console.log(`eat ${food}`);
  }

  run(distance: number): void {
    console.log(`run ${distance}km`);
  }
}

let a = new Animal();
a.eat('bread');
a.run(250);

// 通过模块作用域做一个隔离哦，防止上面的变量名重复
export {};